package com.cn.hnust.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.cn.hnust.dao.ColumnMapper;
import com.cn.hnust.pojo.Column;
import com.cn.hnust.service.IColumnService;
import com.cn.hnust.util.Page;
@Service("columnService")
public class ColumnServiceImpl implements IColumnService {

	@Autowired
	private ColumnMapper ColumnDao;
	public Column getUserById(int column_id) throws Exception {
		// TODO Auto-generated method stub
		return null;
	}

	
	public List<Column> getUsers() {
		// TODO Auto-generated method stub
		return ColumnDao.getUsers();
	}

	
	public Column getUser(int column_id) {
		// TODO Auto-generated method stub
		
		return ColumnDao.getUser(column_id);
	}

	
	public int insert(Column column) {
		// TODO Auto-generated method stub
		
		return ColumnDao.insert(column);
	}

	
	public int delColumn(int tavern_id) {
		// TODO Auto-generated method stub
		return ColumnDao.deleteByPrimaryKey(tavern_id);
	}

	
	public List<Column> selectPersons(String column_name, Page page) {
		// TODO Auto-generated method stub
		return null;
	}

	
	public List<Column> queryAllRecord(Page page) {
		// TODO Auto-generated method stub
		
		return ColumnDao.queryAllRecord(page);
	}

	
	public int getCount() {
		// TODO Auto-generated method stub
		
		return ColumnDao.getCount();
	}

	
	public int updateByPrimaryKey(Column column) {
		// TODO Auto-generated method stub
		
		return ColumnDao.updateByPrimaryKey(column);
	}

	
	public int getCountmh(String column_name) {
		// TODO Auto-generated method stub
		return 0;
	}

}
